package com.yejiarong.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yejiarong.auth.bean.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author YeJR
 */
@Mapper
public interface IRoleMapper extends BaseMapper<Role> {

    /**
     * 查询用户的角色
     * @param userId 用户ID
     * @return 角色list
     */
    List<String> getUserRoles(Long userId);
}
